
class HashMap:

    def __init__(self):
        self.map = dict()

    def put(self, key, value):
        self.map[key] = value

    def get(self, key):
        return self.map.get(key, None)

    def remove(self, key):
        del self.map[key]

    def values(self):
        return [v for k, v in self.map.items()]

    def containsKey(self, key):
        return key in self.map.keys()

    def computeIfAbsent(self, key, defaultValue):
        if key in self.map.keys():
            return self.map[key]
        else:
            self.map[key] = defaultValue
            return defaultValue

    def removeUnchecked(self, key):
        del self.map[key]

    def clear(self):
        self.map = []